// ButtonLeft.cpp : implementation file
//

#include "stdafx.h"
#include "NXTPocketPC.h"
#include "ButtonLeft.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// ButtonLeft

ButtonLeft::ButtonLeft()
{
}

ButtonLeft::~ButtonLeft()
{
}


BEGIN_MESSAGE_MAP(ButtonLeft, CButton)
	//{{AFX_MSG_MAP(ButtonLeft)
	ON_WM_LBUTTONDOWN()
	ON_WM_LBUTTONUP()
	ON_WM_LBUTTONDBLCLK()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// ButtonLeft message handlers

void ButtonLeft::OnLButtonDown(UINT nFlags, CPoint point) 
{
	dialog->turn_left();
}

void ButtonLeft::OnLButtonUp(UINT nFlags, CPoint point) 
{
    dialog->stop();
}

void ButtonLeft::OnLButtonDblClk(UINT nFlags, CPoint point) 
{
	//Do nothing
}
